import adminConfig from '@/admin.config.js'
export default {
  namespaced: true,
  state: {},
  getters: {},
  mutations: {},
  actions: {
    list(_, data) {
      return uni.request({
        url: '/unify/role/index',
        data
      })
    },
    form(_, data = {}) {
      return uni.request({
        url: '/unify/role/form',
        data
      })
    },
    save(_, data = {}) {
      return uni.request({
        url: `/unify/role/${data.id?'update':'save'}`,
        data
      })
    },
    read(_, data) {
      return uni.request({
        url: '/unify/role/read',
        data
      })
    },
    delete(_, data) {
      return uni.request({
        url: '/unify/role/delete',
        data
      })
    },

  }
}